package abstractfactory.factory.impl;

import abstractfactory.factory.Factory;
import abstractfactory.service.DepartmentService;
import abstractfactory.service.UserService;
import abstractfactory.service.impl.AccessDepartmentServiceImpl;
import abstractfactory.service.impl.AccessUserServiceImpl;

public class AccessFactoryImpl implements Factory {
    @Override
    public UserService createUser() {
        return new AccessUserServiceImpl();
    }

    @Override
    public DepartmentService createDepartment() {
        return new AccessDepartmentServiceImpl();
    }
}
